#include "UnionFindSet.h"

int main()
{
    //std::string a[]={"张三","李四","王五","赵六","田七"};
    //dzp::UnionFindSet1<std::string> _uf(a,5);
    dzp::UnionFindSet _u(10);
   // _u.ff();
   _u.ff();
   std::cout<<std::endl;
   _u.Union(9,8);
   _u.Union(7,8);
   _u.Union(6,7);
   _u.Union(5,6);
   _u.Union(4,5);
   _u.ff();
   std::cout<<std::endl;
   _u.FindRoot(9);
   _u.ff();
   std::cout<<_u.SetCount();
   std::cout<<std::endl;
    return 0;
}